# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('basedata', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='House',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('name', models.CharField(verbose_name='小区名称', max_length=100)),
                ('address', models.CharField(verbose_name='地址', max_length=300)),
                ('rent_money', models.PositiveIntegerField(default=0, verbose_name='金额')),
                ('size', models.FloatField(default=0, verbose_name='平米数')),
                ('position', models.CharField(blank=True, verbose_name='位置朝向', null=True, max_length=50)),
                ('decorate', models.CharField(blank=True, verbose_name='装修情况', null=True, max_length=50)),
                ('rent_way', models.CharField(blank=True, verbose_name='租住方式', null=True, max_length=50)),
                ('type', models.CharField(blank=True, verbose_name='房屋类型', null=True, max_length=50)),
                ('layout', models.CharField(blank=True, verbose_name='房屋布局', null=True, max_length=50)),
                ('category', models.CharField(default='S', verbose_name='发布类别', choices=[('S', '售房'), ('R', '租房')], max_length=1)),
                ('floor_num', models.PositiveSmallIntegerField(default=0, verbose_name='楼层数')),
                ('floor_total', models.PositiveSmallIntegerField(default=0, verbose_name='总楼层数')),
                ('info', models.TextField(blank=True, verbose_name='描述', null=True, max_length=4000)),
                ('city', models.ForeignKey(to='basedata.City')),
                ('house_features', models.ManyToManyField(to='basedata.Feature')),
                ('house_fittings', models.ManyToManyField(to='basedata.Fitting')),
            ],
        ),
        migrations.CreateModel(
            name='HouseImage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('house_pic', models.ImageField(upload_to='house', verbose_name='房子照片', null=True)),
                ('house', models.ForeignKey(to='product.House')),
            ],
        ),
    ]
